export default {
  state: {
    //角色字典,系统所有角色
    roles: [ ],
    //权限字典(系统所有权限)
    privileges: []
  },

  mutations: {
    setUser(state, user) {
      state.user = user;
    },

    setRoles(state, roles){
      state.roles = roles;
    },

    setPrivileges(state,privileges){
      state.privileges = privileges;
    }
  }
}
